package wsi.gui.predpath;

import org.rygh.core.db.tuple.NamedModel;
import org.rygh.semantic.func.RdfPathFunctionality;

public class PredicatePathTuple extends NamedModel {
	enum Columns {
		FUNCTIONALITY, INVERSE_FUNCTIONALITY,
	}

	private final RdfPathFunctionality pathFunctionality;

	public PredicatePathTuple(int id, RdfPathFunctionality pathFunctionality) {
		super(id, pathFunctionality.getValue().getKey());

		this.pathFunctionality = pathFunctionality;

		set(Columns.FUNCTIONALITY, pathFunctionality.getFunctionality());
		set(Columns.INVERSE_FUNCTIONALITY,
				pathFunctionality.getInverseFunctionality());
	}

	public RdfPathFunctionality getPathFunctionality() {
		return pathFunctionality;
	}

}